﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Xyz.Web.Reservation.Models.FlightModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Departure Flight Status
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h1>
        Departure Flight Status</h1>
    <br />
    <% using (Html.BeginForm())
       { %>
    <%= Html.ValidationSummary(false)%>
    <fieldset>
    <div>
        <table>
          <tr>
             <td>
                <%: Html.LabelFor(model => model.FlightCode) %>
             </td>
             <td>
                <%: Html.TextBoxFor(model => model.FlightCode) %>
             </td>
          </tr>
          <tr>
              <td>
                <%: Html.LabelFor(model => model.DepartureAirport) %>  
              </td>
              <td>
                <%= Html.DropDownListFor(model => model.DepartureAirport, (SelectList)ViewData["AirportList"], new { style = "width: 99%;" })%>
              </td>
          </tr>
          <tr>
             <td>
               <%: Html.LabelFor(model => model.DepartureDateTime) %>
             </td>
             <td>
               <%: Html.EditorFor(model => model.DepartureDateTime)%>
             </td>
          </tr>
        </table>
        <br />
        <div>
            <input type="submit" value="Check Status"  class="yellow_button"/>
        </div>
    </div>
    </fieldset>
    <br />
    <div>
       <%if(Model != null) %>
       <%   { %>
       <% Html.RenderPartial("../Booking/FlightInfo"); %>
         <%} %>
    </div>
    <% } %>
</asp:Content>
